import request from "./http";


// 人气好物
export function getHomls():any{
    return request({
        url:"https://api-mall.mihoyogift.com/common/homeishop/v1/goods/puzzle_goods_info?puzzle_id=mall_cn_ys_1684307015&component_id=pz-8FH-pUFKsP",
        method:"get",
      
      
    })
}

// 人气好物
export function getUplod():any{
    return request({
        url:"https://www.fastmock.site/mock/3852e07a67cad6e17f1cd28accba5fbb/_shpm/uplod",
        method:"get"
    })
}

// 商品详情 getDeta
export function getDeta(goods_id:any):any{
    return request({
        url:"https://api-mall.mihoyogift.com/common/homeishop/v1/goods/detail",
        method:"get",
        params:{goods_id}
    })
}

//    玩偶

export function getDoll():any{
    return request({
        url:"https://www.fastmock.site/mock/3852e07a67cad6e17f1cd28accba5fbb/_shpm/doll",
        method:"get"
    })
}


// 商品详情
export function getTixue():any{
    return request({
        url:"https://www.fastmock.site/mock/3852e07a67cad6e17f1cd28accba5fbb/_shpm/tixue",
        method:"get"
    })
}

   //百货  /department

   export function getDepartment():any{
    return request({
        url:"https://www.fastmock.site/mock/3852e07a67cad6e17f1cd28accba5fbb/_shpm/department",
        method:"get"
    })
}



// 详情数据
export function getComd():any{
    return request({
        url:"https://api-mall.mihoyogift.com/common/homeishop/v1/goods/detail?goods_id=2021633865892689628160",
        method:"get"
    })
}
////////////////////////////////////////////////////////////////////
// 商品类  

export function getMihoyo():any{
    return request({
 url:"https://api-mall.mihoyogift.com/common/homeishop/v1/goods/search_goods_spu_list?page=1&limit=16&order_by=comprehensive&shop_code=ys&show_sale_type=1&hide_sold_out=false&goods_type=1",
        method:"get"
    })
}


export function getSech():any{

    return request({
 url:"https://api-mall.mihoyogift.com/common/homeishop/v1/goods/search_goods_spu_list?page=2&limit=16&order_by=comprehensive&shop_code=ys&show_sale_type=1&hide_sold_out=false&goods_type=1",
        method:"get"
    })
}

// 线下周边
export function getRim():any{

    return request({
 url:"https://api-mall.mihoyogift.com/common/homeishop/v1/goods/search_goods_spu_list?page=3&limit=16&order_by=comprehensive&shop_code=ys&show_sale_type=1&hide_sold_out=false&goods_type=1",
        method:"get"
    })
}

//插画
export function getIkon():any{

    return request({
 url:"https://api-mall.mihoyogift.com/common/homeishop/v1/goods/search_goods_spu_list?page=4&limit=16&order_by=comprehensive&shop_code=ys&show_sale_type=1&hide_sold_out=false&goods_type=1",
        method:"get"
    })
}



////////////////////////////////////////////////
//挂件摆件
export function getPendant():any{
    return request({
        url:"https://www.fastmock.site/mock/3852e07a67cad6e17f1cd28accba5fbb/_shpm/pendant",
        method:"get"
    })
}

// 全部分类

export function getComplete():any{
    return request({
        url:"https://api-mall-static.mihoyogift.com/common/homeishop/v1/category/get_category_list?shop_code=ys",
        method:"get"
    })
}
// 
//全部分类  旅行征程category_id=30
export function geAggre(params:any):any{
    return request({
        url:"https://api-mall.mihoyogift.com/common/homeishop/v1/goods/search_goods_spu_list?page=1&limit=16&order_by=comprehensive&category_id="+ params +"&shop_code=ys&show_sale_type=1&hide_sold_out=false&goods_type=1",
        method:"get",
        
      
    })
}

// 用户评价

export function getCrier(params:any):any{
    return request({
        url:"https://api-mall.mihoyogift.com/common/hm_app/v1/reviews?limit=20&order_by=comprehensive&goods_id=" + params +"&content_type=all&page=1",
        method:"get",
        
      
    })
}
// 综合点击事件
export function getSynt(params:any):any{
    return request({
        url:"https://api-mall.mihoyogift.com/common/homeishop/v1/goods/search_goods_spu_list?page=1&limit=16&order_by=" +  params + "&shop_code=ys&show_sale_type=1&hide_sold_out=false&goods_type=1",
        method:"get",
        
      
    })
}





// 购物车
// export function getFind(goods_id:any):any{
//     return request({
//         url:"https://api-mall.mihoyogift.com/common/homeishop/v2/shop_car/get_shop_car_list",
//         method:"get",
//         params:{goods_id}
//     })
// }

